import 'package:aihu_getx_app/app/modules/d/d_workbench/models/menu_vo.dart';
import 'package:aihu_getx_app/app/modules/d/d_workbench/models/user_vo.dart';
import 'package:json_annotation/json_annotation.dart';

part 'auth_permission_info_resp_vo.g.dart';

@JsonSerializable()
class AuthPermissionInfoRespVo {
  final UserVo? user;
  final List<String>? roles, permissions;
  final List<MenuVo>? menus;

  AuthPermissionInfoRespVo({
    this.user,
    this.roles,
    this.permissions,
    this.menus,
  });

  factory AuthPermissionInfoRespVo.fromJson(Map<String, dynamic> json) =>
      _$AuthPermissionInfoRespVoFromJson(json);

  Map<String, dynamic> toJson() => _$AuthPermissionInfoRespVoToJson(this);
}
